#pragma once

#include "ComDefinition.h"

class CPOSPrinter;
class CDlgPrinterCheck : public CDialog
{
	//DECLARE_DYNAMIC(CDlgPrinterCheck)

public:
	CDlgPrinterCheck(CWnd* pParent = NULL);   
	virtual ~CDlgPrinterCheck();


	enum { IDD = IDD_DLG_PRINTERCHECK };

    void SetPrinterInfo(int nType, int nPort);
    void EnablePT(BOOL bPT = TRUE) {m_bPT = bPT;}
    int GetResult() const {return m_nStatus;}

protected:
	virtual void DoDataExchange(CDataExchange* pDX);   

    virtual BOOL OnInitDialog();
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    
    afx_msg void OnBnClickedOk();
	
    DECLARE_MESSAGE_MAP()

private:
    CPOSPrinter *m_pPrinter;
    EDeviceStatus m_nStatus;
    BOOL m_bPT;

public:
    afx_msg void OnBnClickedBtnPrtAdvtest();
    afx_msg void OnBnClickedRadioNormal();
    afx_msg void OnBnClickedRadioError();
    afx_msg void OnBnClickedRadioPass();
};
